projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86c8ce1
)
Do not bother starting a draw call if bar_size <= 0
author
Kristian Rietveld
<kris@gtk.org>
Sun, 5 Dec 2010 12:56:24 +0000
(13:56 +0100)
committer
Kristian Rietveld
<kris@gtk.org>
Sun, 5 Dec 2010 12:57:04 +0000
(13:57 +0100)
gtk/gtkcellrendererprogress.c
patch
|
blob
|
history
diff --git
a/gtk/gtkcellrendererprogress.c
b/gtk/gtkcellrendererprogress.c
index 20abba0fcde639dad9e3c99261d80ccffee30b48..f226eb7c2225ee680929fce562514cf3f7ba38bf 100644
(file)
--- a/
gtk/gtkcellrendererprogress.c
+++ b/
gtk/gtkcellrendererprogress.c
@@
-604,12
+604,13
@@
gtk_cell_renderer_progress_render (GtkCellRenderer *cell,
clip.y = bar_position;
}
- gtk_paint_box (style,
- cr,
- GTK_STATE_SELECTED, GTK_SHADOW_OUT,
- widget, "bar",
- clip.x, clip.y,
- clip.width, clip.height);
+ if (bar_size > 0)
+ gtk_paint_box (style,
+ cr,
+ GTK_STATE_SELECTED, GTK_SHADOW_OUT,
+ widget, "bar",
+ clip.x, clip.y,
+ clip.width, clip.height);
if (priv->label)
{